<clr-dropdown *ngIf="!isTagMode">
    <hbr-copy-input
        *ngIf="isImage(artifact)"
        [title]="getPullCommandForRuntimeByDigest(artifact)"
        [iconMode]="true"
        id="pullCommandForDigest"
        (onCopySuccess)="
            onCpSuccess(getPullCommandForRuntimeByDigest(artifact))
        "
        [defaultValue]="
            getPullCommandForRuntimeByDigest(artifact)
        "></hbr-copy-input>
    <div
        *ngIf="isCNAB(artifact)"
        class="flex"
        id="pullCommandForCNAB"
        aria-label="Dropdown header Action">
        <hbr-copy-input
            [title]="getPullCommandForCNAB(artifact)"
            [iconMode]="true"
            (onCopySuccess)="onCpSuccess(getPullCommandForCNAB(artifact))"
            [defaultValue]="getPullCommandForCNAB(artifact)"></hbr-copy-input>
    </div>
    <div
        *ngIf="isChart(artifact) && artifact.tagNumber > 0"
        class="flex"
        id="pullCommandForChart"
        aria-label="Dropdown header Action">
        <hbr-copy-input
            [title]="getPullCommandForChart(artifact)"
            [iconMode]="true"
            (onCopySuccess)="onCpSuccess(getPullCommandForChart(artifact))"
            [defaultValue]="getPullCommandForChart(artifact)"></hbr-copy-input>
    </div>
</clr-dropdown>

<clr-dropdown
    class="mr-1"
    *ngIf="isTagMode"
    [disabled]="!hasPullCommandForTag(artifact)">
    <hbr-copy-input
        *ngIf="isImage(artifact)"
        [title]="getPullCommandForRuntimeByTag(artifact)"
        [iconMode]="true"
        (onCopySuccess)="onCpSuccess(getPullCommandForRuntimeByTag(artifact))"
        [defaultValue]="
            getPullCommandForRuntimeByTag(artifact)
        "></hbr-copy-input>

    <hbr-copy-input
        *ngIf="isCNAB(artifact)"
        [title]="getPullCommandForCNABByTag(artifact)"
        [iconMode]="true"
        (onCopySuccess)="onCpSuccess(getPullCommandForCNABByTag(artifact))"
        [defaultValue]="getPullCommandForCNABByTag(artifact)"></hbr-copy-input>
    <hbr-copy-input
        *ngIf="isChart(artifact)"
        [title]="getPullCommandForChartByTag(artifact)"
        [iconMode]="true"
        (onCopySuccess)="onCpSuccess(getPullCommandForChartByTag(artifact))"
        [defaultValue]="getPullCommandForChartByTag(artifact)"></hbr-copy-input>
</clr-dropdown>
